package com.bdth.bdthmall.api.epoint.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.enums.IdType;
import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 商品信息表
 * </p>
 *
 * @author LGP
 * @since 2020-01-15
 */
@TableName("sp_goods")
public class Goods implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 商品ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 商品名称
     */
    private String name;
    /**
     * 商品的货号
     */
    private String goodsNo;
    /**
     * 模型ID
     */
    private Integer modelId;
    /**
     * 销售价格
     */
    private BigDecimal sellPrice;
    /**
     * 市场价格
     */
    private BigDecimal marketPrice;
    /**
     * 成本价格
     */
    private BigDecimal costPrice;
    /**
     * 上架时间
     */
    private Date upTime;
    /**
     * 下架时间
     */
    private Date downTime;
    /**
     * 创建时间
     */
    private Date createTime;
    /**
     * 库存
     */
    private Integer storeNums;
    /**
     * 原图
     */
    private String img;
    /**
     * 宣传图
     */
    private String adImg;
    /**
     * 商品状态 0正常 1已删除 2下架 3申请上架
     */
    private Integer isDel;
    /**
     * 商品描述
     */
    private String content;
    /**
     * SEO关键词
     */
    private String keywords;
    /**
     * SEO描述
     */
    private String description;
    /**
     * 产品搜索词库,逗号分隔
     */
    private String searchWords;
    /**
     * 重量
     */
    private BigDecimal weight;
    /**
     * 积分
     */
    private Integer point;
    /**
     * 计件单位。如:件,箱,个
     */
    private String unit;
    /**
     * 品牌ID
     */
    private Integer brandId;
    /**
     * 浏览次数
     */
    private Integer visit;
    /**
     * 收藏次数
     */
    private Integer favorite;
    /**
     * 排序
     */
    private Integer sort;
    /**
     * 商品信息json数据
     */
    private String specArray;
    /**
     * 经验值
     */
    private Integer exp;
    /**
     * 评论次数
     */
    private Integer comments;
    /**
     * 销量
     */
    private Integer sale;
    /**
     * 评分总数
     */
    private Integer grade;
    /**
     * 卖家ID
     */
    private Integer sellerId;
    /**
     * 共享商品 0不共享 1共享
     */
    private Integer isShare;
    /**
     * 免运费 0收运费 1免运费
     */
    private Integer isDeliveryFee;
    /**
     * 默认:普通,groupon:团购,time:限时抢购,costpoint:积分兑换
     */
    private String promo;
    /**
     * 活动ID主键
     */
    private Integer activeId;
    /**
     * default:实体,code:到店服务,download:知识付费下载
     */
    private String type;
    /**
     * 预留散列字段
     */
    @TableField("_hash")
    private Integer hash;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getGoodsNo() {
        return goodsNo;
    }

    public void setGoodsNo(String goodsNo) {
        this.goodsNo = goodsNo;
    }

    public Integer getModelId() {
        return modelId;
    }

    public void setModelId(Integer modelId) {
        this.modelId = modelId;
    }

    public BigDecimal getSellPrice() {
        return sellPrice;
    }

    public void setSellPrice(BigDecimal sellPrice) {
        this.sellPrice = sellPrice;
    }

    public BigDecimal getMarketPrice() {
        return marketPrice;
    }

    public void setMarketPrice(BigDecimal marketPrice) {
        this.marketPrice = marketPrice;
    }

    public BigDecimal getCostPrice() {
        return costPrice;
    }

    public void setCostPrice(BigDecimal costPrice) {
        this.costPrice = costPrice;
    }

    public Date getUpTime() {
        return upTime;
    }

    public void setUpTime(Date upTime) {
        this.upTime = upTime;
    }

    public Date getDownTime() {
        return downTime;
    }

    public void setDownTime(Date downTime) {
        this.downTime = downTime;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getStoreNums() {
        return storeNums;
    }

    public void setStoreNums(Integer storeNums) {
        this.storeNums = storeNums;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public String getAdImg() {
        return adImg;
    }

    public void setAdImg(String adImg) {
        this.adImg = adImg;
    }

    public Integer getIsDel() {
        return isDel;
    }

    public void setIsDel(Integer isDel) {
        this.isDel = isDel;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getKeywords() {
        return keywords;
    }

    public void setKeywords(String keywords) {
        this.keywords = keywords;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getSearchWords() {
        return searchWords;
    }

    public void setSearchWords(String searchWords) {
        this.searchWords = searchWords;
    }

    public BigDecimal getWeight() {
        return weight;
    }

    public void setWeight(BigDecimal weight) {
        this.weight = weight;
    }

    public Integer getPoint() {
        return point;
    }

    public void setPoint(Integer point) {
        this.point = point;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public Integer getBrandId() {
        return brandId;
    }

    public void setBrandId(Integer brandId) {
        this.brandId = brandId;
    }

    public Integer getVisit() {
        return visit;
    }

    public void setVisit(Integer visit) {
        this.visit = visit;
    }

    public Integer getFavorite() {
        return favorite;
    }

    public void setFavorite(Integer favorite) {
        this.favorite = favorite;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public String getSpecArray() {
        return specArray;
    }

    public void setSpecArray(String specArray) {
        this.specArray = specArray;
    }

    public Integer getExp() {
        return exp;
    }

    public void setExp(Integer exp) {
        this.exp = exp;
    }

    public Integer getComments() {
        return comments;
    }

    public void setComments(Integer comments) {
        this.comments = comments;
    }

    public Integer getSale() {
        return sale;
    }

    public void setSale(Integer sale) {
        this.sale = sale;
    }

    public Integer getGrade() {
        return grade;
    }

    public void setGrade(Integer grade) {
        this.grade = grade;
    }

    public Integer getSellerId() {
        return sellerId;
    }

    public void setSellerId(Integer sellerId) {
        this.sellerId = sellerId;
    }

    public Integer getIsShare() {
        return isShare;
    }

    public void setIsShare(Integer isShare) {
        this.isShare = isShare;
    }

    public Integer getIsDeliveryFee() {
        return isDeliveryFee;
    }

    public void setIsDeliveryFee(Integer isDeliveryFee) {
        this.isDeliveryFee = isDeliveryFee;
    }

    public String getPromo() {
        return promo;
    }

    public void setPromo(String promo) {
        this.promo = promo;
    }

    public Integer getActiveId() {
        return activeId;
    }

    public void setActiveId(Integer activeId) {
        this.activeId = activeId;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Integer getHash() {
        return hash;
    }

    public void setHash(Integer hash) {
        this.hash = hash;
    }

    @Override
    public String toString() {
        return "Goods{" +
        ", id=" + id +
        ", name=" + name +
        ", goodsNo=" + goodsNo +
        ", modelId=" + modelId +
        ", sellPrice=" + sellPrice +
        ", marketPrice=" + marketPrice +
        ", costPrice=" + costPrice +
        ", upTime=" + upTime +
        ", downTime=" + downTime +
        ", createTime=" + createTime +
        ", storeNums=" + storeNums +
        ", img=" + img +
        ", adImg=" + adImg +
        ", isDel=" + isDel +
        ", content=" + content +
        ", keywords=" + keywords +
        ", description=" + description +
        ", searchWords=" + searchWords +
        ", weight=" + weight +
        ", point=" + point +
        ", unit=" + unit +
        ", brandId=" + brandId +
        ", visit=" + visit +
        ", favorite=" + favorite +
        ", sort=" + sort +
        ", specArray=" + specArray +
        ", exp=" + exp +
        ", comments=" + comments +
        ", sale=" + sale +
        ", grade=" + grade +
        ", sellerId=" + sellerId +
        ", isShare=" + isShare +
        ", isDeliveryFee=" + isDeliveryFee +
        ", promo=" + promo +
        ", activeId=" + activeId +
        ", type=" + type +
        ", hash=" + hash +
        "}";
    }
}
